package cn.itcast.cd.dao;

import java.util.List;

import cn.itcast.cd.query.IQuery;
import cn.itcast.cd.resultPage.ResultPage;

public interface IBaseDao<T>{

	public void save(T t);
	
	public void delete(Long id);
	
	public void update(T t);
	
	public T get(Long id);
	
	public ResultPage query(String hql,Object[] params,int currentPage,int pageSize);
	
	public ResultPage queryEntity(IQuery query);
	
	public List<T> queryEntity(String conditions,Object[] params);

	Object queryUniqueEntity(String conditions, Object[] params);

}
